package com.huiztech.kaoqinji.mvc;

import java.util.HashMap;

public class KaoqinControllerFactory {
    private static AbstractKaoqinController controller = null;

    private KaoqinControllerFactory() {
    }

    public static AbstractKaoqinController getInstance() {
        if (controller == null) {
            //正式环境
            controller = new KaoqinController();
            //测试环境
            //controller=new KaoqinControllerForTest();

            controller.setHuizModel(new HashMap<String, Object>());
            controller.setHuizView(new KaoqinView());
        }
        return controller;
    }
}
